import {createRouter, createWebHistory} from 'vue-router'

// 路由组件
import toDoPage from '../pages/toDoPage.vue'
import addToDoPage from '../pages/addToDoPage.vue'

// 创建路由器
const router = createRouter({
    history: createWebHistory(),
    routes: [
        {
            path: '/',
            name: '',
            component: toDoPage
        },
        {
            path: '/toDoPage',
            name: 'toDoPage',
            component: toDoPage
        },
        {
            path: '/addToDoPage',
            name: 'addToDoPage',
            component: addToDoPage
        }
    ]
})

export default router;